package com.joven.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.joven.core.mapper.TblGoodsStoreMapper;
import com.joven.core.model.TblGoodsStore;
import com.joven.core.model.dto.TblGoodsAccountDTO;
import com.joven.core.service.TblGoodsStoreService;
import org.springframework.stereotype.Service;

/**
 * @author joven_wong
 * 2021/7/20 15:52
 */
@Service("tblGoodsStoreService")
public class TblGoodsStoreServiceImpl extends ServiceImpl<TblGoodsStoreMapper,TblGoodsStore> implements TblGoodsStoreService {

    @Override
    public TblGoodsAccountDTO getOne(String name) {
        return getBaseMapper().getOne(
                new QueryWrapper<TblGoodsAccountDTO>().eq("name",name)
        );
    }
}
